package com.hy.erp.inventory.pojo;

import java.io.Serializable ;
import java.math.BigDecimal ;
import java.util.Date ;

import javax.persistence.Column ;
import javax.persistence.Entity ;
import javax.persistence.Id ;
import javax.persistence.NamedQuery ;
import javax.persistence.Table ;
import javax.persistence.Temporal ;
import javax.persistence.TemporalType ;

import org.hibernate.annotations.Index ;
import org.jboss.seam.ScopeType ;
import org.jboss.seam.annotations.Name ;
import org.jboss.seam.annotations.Scope ;

import com.hy.erp.inventory.dao.interfaces.IWorkingDao;
import com.hy.erp.inventory.pojo.interfaces.IWorking;
import com.hy.erp.inventory.vsoft.libra.enterprise.framework.persistence.api.annotation.DaoA;
import com.hy.erp.inventory.vsoft.libra.enterprise.framework.persistence.entity.AbstractPersistentEntity;


/**
 * <ul>
 * <li>开发作者：汤莉</li>
 * <li>设计日期：2010-10-6；时间：下午02:46:41</li>
 * <li>字段类型：long；字段名称：serialVersionUID</li>
 * <li>设计目的：</li>
 * </ul>
 * <ul>
 * <b>修订编号：</b>
 * <li>修订日期：</li>
 * <li>修订作者：</li>
 * <li>修订原因：</li>
 * <li>修订内容：</li>
 * </ul>
 */

/*@Entity
@Name("working")
@Scope(ScopeType.SESSION)
@Table(name="workings")
@DaoA(IWorkingDao.class)
@ NamedQuery ( name = "findWorkingByPersonId" , query = "select p.working from Person p where p.identifier=?")
*/public class Working extends AbstractPersistentEntity
					implements
					IWorking
{

	private static final long	serialVersionUID	=
														8020386621185856970L ;

	
	
	public Working(){}

	

	@Column(name="workName",unique=false,nullable=true,insertable=true,updatable=true)
	@Index(name="workNameIndex")
	public String getWorkName ( )
	{
		return this.get(IWorking.WORKNAME) ;
	}

	@Column(name="startDate",unique=false,nullable=true,insertable=true,updatable=true)
	@Temporal(TemporalType.DATE)
	public Date getStartDate ( )
	{
		return this.get(IWorking.STARTDATE) ;
	}

	@Column(name="stopDate",unique=false,nullable=true,insertable=true,updatable=true)
	@Temporal(TemporalType.DATE)
	public Date getStopDate ( )
	{
		return this.get(IWorking.STOPDATE) ;
	}

	@Column(name="beforePosition",unique=false,nullable=true,insertable=true,updatable=true)
	public String getBeforePosition ( )
	{
		return this.get(IWorking.BEFOREPOSITION) ;
	}

	@Column(name="salaryRange",unique=false,nullable=true,insertable=true,updatable=true)
	public BigDecimal getSalaryRange ( )
	{
		return this.get(IWorking.SALARYRANGE) ;
	}

	@Column(name="remark",unique=false,nullable=true,insertable=true,updatable=true)
	public String getRemark ( )
	{
		return this.get(IWorking.REMARK) ;
	}

	//##############################################################################
	
	

	public void setWorkName (
								String workName )
	{
		super.set(IWorking.WORKNAME, workName);
	}

	public void setStartDate (
								Date startDate )
	{
		super.set(IWorking.STARTDATE, startDate);
	}

	public void setStopDate (
								Date stopDate )
	{
		super.set(IWorking.STOPDATE, stopDate);
	}

	public void setBeforePosition (
									String beforePosition )
	{
		super.set(IWorking.BEFOREPOSITION, beforePosition);
	}

	public void setSalaryRange (
									BigDecimal salaryRange )
	{
		super.set(IWorking.SALARYRANGE, salaryRange);
	}

	public void setRemark (
							String remark )
	{
		super.set(IWorking.REMARK, remark);
	}
	
}
